package com.cenluan.session;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * session监听器
 */
public class SessionListener implements HttpSessionListener {

	public void sessionCreated(HttpSessionEvent e) {
		SessionManager.addGuestSession(e.getSession());
	}

	public void sessionDestroyed(HttpSessionEvent e) {
		SessionManager.removeGuestSession(e.getSession().getId());

	}
}
